#!/usr/bin/python3.4
# -*- coding: utf-8 -*-
"""
    作者:jinayang
    网站:yangshengliang.com
    时间: 2016-11-22
    功能描述：程序调动
    版本:1.0

"""

from com.yangshengliang.src.getTfIdf import getIdf
from com.yangshengliang.src.feici import Fenci
from com.yangshengliang.config.config import Config
import os
sep = os.sep


if __name__ == "__main__":
    try:
        Fenci().getKey()
        fenci_file_dir = sep.join([Config().config.get('result_path'), "fenci"])
        getIdf(fenci_file_dir)

    except Exception as e:
        print(e)
